<?php
/**
 * Created by PhpStorm.
 * User: WenQing
 * Date: 2017/7/28
 * Time: 15:56
 */

$redis = new Redis();
$redis->connect('127.0.0.1', 6379);

//$redis->lPush('post','1','2');

$data = $redis->lRange('post',0,-1);
echo "<pre>";
var_dump($data);
echo "</pre>";

